# import mimesis
#
# text = mimesis.Text('zh')
# # print(text.title())
# # print(text.text())
# for i in range(100):
#     with open(r'a.txt','a+',encoding='utf-8') as file:
#         file.write(f'{text.title()}\n')
# class A(object):
#
#     def __new__(cls):
#         "重写__new__方法"
#         if not hasattr(cls,'instance'):
#             cls.instance = super().__new__(cls)
#         return cls.instance
#     def __init__(self):
#
#         print('init')
#
#
# a = A()
# b = A()
# print(a)  # 'abc',实例化对象取决于__new__方法，__new__返回什么就是什么
# print(b)

a = {'age':12}
for k,v in a.items():
    print(k,v)

